From c161d93f35f7545f489f0eb740b4b077dcb54713 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 12 Jul 2026 10:28:48 +0000 Subject: [PATCH] [PATCH] firebird: don't run an attached database's own event triggers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit for the embedded and file cases suppress the database's ON CONNECT and similar event triggers when attaching, they should not fire just because the document was opened Change-Id: I37edab43f25d8cb72cc6dcafd743045f96b4c2e6 Signed-off-by: Caolán McNamara Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6700 Reviewed-by: Miklos Vajna Tested-by: Jenkins CPCI (cherry picked from commit 36335ff89ea2309e99da02b449c9b35517cd6f9d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208029 Tested-by: Jenkins Reviewed-by: Xisco Fauli Signed-off-by: Xisco Fauli Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208062 Signed-off-by: Xisco Fauli Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208074 Signed-off-by: Xisco Fauli Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208110 Tested-by: Christian Lohmaier Reviewed-by: Christian Lohmaier Reviewed-by: Hossein Gbp-Pq: Name CVE-2026-63266-1.diff --- connectivity/source/drivers/firebird/Connection.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 9b620d05adf..dad99cd50b8 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -233,8 +233,13 @@ void Connection::construct(const OUString& url, const Sequence< PropertyValue >& // Do any more dpbBuffer additions here + // attach without running the database's own event triggers if (m_bIsEmbedded || m_bIsFile) { + dpbBuffer.push_back(isc_dpb_no_db_triggers); + dpbBuffer.push_back(1); // 1 byte long + dpbBuffer.push_back(1); + userName = "sysdba"_ostr; userPassword = "masterkey"_ostr; } -- 2.39.5